package records

import (
	"github.com/golib/mysql"
)

const RecordNameOnlineStudentInfo = "online_student_info"

func init() {
	var r = &OnlineStudentInfo{}
	mysql.RegisterRecord(r.Name(), r)
}

type OnlineStudentInfo struct {
	StudentId  int    `json:"studentId" form:"studentId" column:"student_id" primary:"true" modify:"false"`
	City       string `column:"city" modify:"true" json:"city" form:"city"`
	Age        int    `json:"age" form:"age" column:"age" modify:"true"`
	Sex        int    `json:"sex" form:"sex" column:"sex" modify:"true"`
	Interest   string `json:"interest" form:"interest" column:"interest" modify:"true"`
	Sign       string `json:"sign" form:"sign" column:"sign" modify:"true"`
	Diamond    int    `json:"diamond" form:"diamond" column:"diamond" modify:"true"`
	Score      int    `json:"score" form:"score" column:"score" modify:"true"`
	CreateTime string `form:"createTime" column:"create_time" modify:"false" json:"createTime"`
	UpdateTime string `json:"updateTime" form:"updateTime" column:"update_time" modify:"false"`
}

func (r *OnlineStudentInfo) Name() string {
	return RecordNameOnlineStudentInfo
}
